package org.sgx.gapi.client.apis.youtube;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * images associated with the search result. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information
 * about the thumbnail.
 * 
 * @see https://developers.google.com/youtube/v3/docs/search#resource
 * @author sg
 * 
 */
public class SearchSnippetThumbnail extends JavaScriptObject {
	protected SearchSnippetThumbnail() {
	}

	public static final native SearchSnippetThumbnail create()/*-{
		return {};
	}-*/;

	/**
	 * The thumbnail image's URL.
	 * 
	 * @return
	 */
	public native final String url() /*-{
		return this["url"];
	}-*/;
	/**
	 * The thumbnail image's URL.
	 * 
	 * @return
	 */
	public native final JavaScriptObject url2() /*-{
		return this["url"];
	}-*/;

	/**
	 * The thumbnail image's URL.
	 * 
	 * @param val
	 * @return this - for setter chaining
	 */
	public native final SearchSnippetThumbnail url(String val) /*-{
		this["url"] = val;
		return this;
	}-*/;
}
